package com.jsmile.cloud.accountcenter.api.enums;

public enum AccountCodeEnum {

    NOT_EXISTS_ACCOUNT(120001, "账户不存在或非法账户!"), ACCOUNT_BALANCE_NOT_ENOUGH(120002, "账户余额不足!"), ACCOUNT_WITHDRAW_NOT_ENOUGH(120004, "账户可提现余额不足!"),
    ACCOUNT_POINTS_NOT_ENOUGH(120003, "账户积分不足!"),

    WX_MEMBER_SAVE_ERROR(120005, "微信会员保存失败!"), MEMBER_LEVEL_ERROR(120006, "会员等级不存在!"),

    SHOP_NOT_EXISTS(120100, "店铺不存在!"),

    SUPPLY_NOT_EXISTS(120200, "供应商不存在!"), TENANT_NOT_EXISTS(120300, "租户不存在!"),

    ADDRESS_NOT_EXISTS(120400, "用户地址不存在!"),

    MEMBER_NOT_EXISTS(120500, "用户地址不存在!"),;

    /**
     * 错误信息
     */
    private String resMsg;
    /**
     * 错误码
     */
    private Integer resCode;

    AccountCodeEnum(int resCode, String resMsg) {
        this.resCode = resCode;
        this.resMsg = resMsg;
    }

    public String getResMsg() {
        return resMsg;
    }

    public void setResMsg(String resMsg) {
        this.resMsg = resMsg;
    }

    public Integer getResCode() {
        return resCode;
    }

    public void setResCode(Integer resCode) {
        this.resCode = resCode;
    }
}
